import { isDev, getRequest, postRequest } from '@/api';

const urlsObj = {};
if (isDev) {
  urlsObj.getWarnCount = getRequest('warncount');
  urlsObj.getQuantityList = getRequest('quantitys');
  urlsObj.getValidityList = getRequest('validitys');
  urlsObj.getAlertDetail = getRequest('alertdetail');
  urlsObj.getAlertSet = getRequest('alertset');
} else {
  urlsObj.getWarnCount = getRequest('alert/alertNum');
  urlsObj.getQuantityList = postRequest('alert/qalert/list');
  urlsObj.getValidityList = postRequest('alert/valert/list ');
  urlsObj.getAlertDetail = postRequest('alert/qalert/detail');
  urlsObj.getAlertSet = getRequest('alertSetting/sku/{id}');
}

export default urlsObj;
